<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/8
 * Time: 10:02
 */
namespace app\admin\validate;

use think\Validate;

class Smssign extends Validate{
    protected $rule = [
        'client_id'     => 'require',
        'signature'     => 'require|max:20',
        'status'        => 'in:1,0',
    ];
    protected $message  =   [
        'client_id.require'     => '客户ID不能为空',
        'signature.require'     => '签名不能为空',
        'signature.max'         => '签名不能超过20个字符',
        'status.in'             => '状态不正确',
    ];
}